import http from '@/design/libs/request/request'

const BASE_URL = '/platform/task'

export default {
  // 获取列表数据
  list: data => http.post(BASE_URL + '/list', data),
  // 创建数据
  create: data => http.post(BASE_URL + '/create', data),
  // 获取数据
  fetch: (id) => http.post(BASE_URL + '/fetch/' + id),
  // 更新数据
  update: data => http.post(BASE_URL + '/update', data),
  // 删除单个
  delete: (id) => http.post(BASE_URL + '/delete/' + id),
  // 立即执行
  run: (id) => http.post(BASE_URL + '/run/' + id),
  // 更新状态
  disable: data => http.post(BASE_URL + '/disable', data),
  // 撤销申请
  abate: data => http.post(BASE_URL + '/abate', data),
  // 提交流程
  submit: data => http.post(BASE_URL + '/submit', data),
  // 更新表单状态
  stopTask: data => http.post(BASE_URL + '/stopTask', data),
  // 获取部门列表
  deptList: data => http.post(BASE_URL + '/deptList', data),
  // 获取部门列表-无管理部门
  deptListNoManage: data => http.post(BASE_URL + '/deptListNoManage', data),
  // 获取厂商名称
  firmName: data => http.post(BASE_URL + '/firmName', data),
  // 厂商合同信息
  fcInfos: data => http.post(BASE_URL + '/fcInfos', data),
}

